/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: WHY
 * Date: 2022-10-04
 * Time: 10:38
 */
 class AB {

    int a , b ;

    public void init(int x){

        a = x ;

        int b = 5 ;

    }

    public void display(){

        System.out.println("a = "+a+"  b = "+b);

    }

}



    public class ABTest{

        public static void main(String[] args){

            AB ab = new AB();

            ab.init(6);

            ab.display() ;

        }

    }


